@include('admin::layouts.header')
<div class="admin-main layui-anim layui-anim-upbit">
	<fieldset class="layui-elem-field layui-field-title">
		<legend>添加</legend>
	</fieldset>
	<form class="layui-form layui-form-pane" lay-filter="form">
		<div class="layui-form-item">
            <label class="layui-form-label">父级</label>
            <div class="layui-input-4">
				<input type="hidden" value="{{$info['pid']}}" name="pid"/>
				<input type="hidden" value="{{$level_type}}" name="level_type"/>
                <input type="text" value="{{$info['name']}}" disabled class="layui-input">
            </div>
        </div>
		<div class="layui-form-item">
            <label class="layui-form-label">名称</label>
            <div class="layui-input-4">
                <input type="text" maxlength="30" name="name" lay-verify="required" placeholder="请输入名称" class="layui-input">
            </div>
        </div>
		<div class="layui-form-item">
            <label class="layui-form-label">简称</label>
            <div class="layui-input-4">
                <input type="text" maxlength="30" name="short_name" lay-verify="required" placeholder="请输入简称" class="layui-input">
            </div>
        </div>
		<div class="layui-form-item">
            <label class="layui-form-label">区号</label>
            <div class="layui-input-4">
                <input type="text" maxlength="11" name="city_code" placeholder="请输入区号" class="layui-input">
            </div>
        </div>
		<div class="layui-form-item">
            <label class="layui-form-label">邮编</label>
            <div class="layui-input-4">
                <input type="text" maxlength="11" name="zip_code" placeholder="请输入邮编" class="layui-input">
            </div>
        </div>
		<div class="layui-form-item">
            <label class="layui-form-label">经度</label>
            <div class="layui-input-4">
                <input type="text" maxlength="20" name="lng" placeholder="请输入经度" class="layui-input">
            </div>
        </div>
		<div class="layui-form-item">
            <label class="layui-form-label">纬度</label>
            <div class="layui-input-4">
                <input type="text" maxlength="20" name="lat" placeholder="请输入纬度" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">排序</label>
            <div class="layui-input-2">
                <input type="text" onkeyup="this.value=this.value.replace(/\D/gi,&quot;&quot;)" maxlength="11" name="sort" value="1" placeholder="请输入排序编号" lay-verify="required" class="layui-input">
            </div>
        </div>
		@include('admin::layouts.submit',['url'=>route('admin.area.index',['level_type'=>$level_type,'pid'=>$info['pid']])])
	</form>
</div>
@include('admin::layouts.footer')
@include('admin::layouts.create_ajax',['url'=>route('admin.area.store')])